
import {get,post,put,del} from '@/js/http' // get, post,put,del

// 商品管理
  // 所有商品
export const addShop = (params) => {return post('shops/system/goods/addGoods', params)}
export const findAll = (params) => {return get('shops/system/goods/findAll', params)}
export const updateGoods = (params) => {return put('shops/system/goods/updateGoods', params)}
export const deleteGoods = (params) => {return del('shops/system/goods/delete/' + params)}
  // 商品类型
export const getAllType = (params) => {return get('shops/system/goodsType/findAll', params)}
export const addGoodsType = (params) => {return post('shops/system/goodsType/addGoodsType', params)}
export const updateGoodsType = (params) => {return put('shops/system/goodsType/updateGoodsType', params)}
export const delGoodsType = (params) => {return del('shops/system/goodsType/delGoodsType/'+ params)}


// 系统管理
  // 地址管理
export const getAllArea = (params) => {return get('shops/system/area/getTree/' + params)}
export const getProvince = () => {return get('shops/system/area/getProvince')}
export const addArea = (params) => {return post('shops/system/area/addArea', params)}
export const delArea = (params) => {return del('shops/system/area/delete/' + params)}
export const findByName = (params) => {return get('shops/system/area/findByName' , params)}
  // 订单管理
export const findAllOrder = (params) => {return get('shops/system/order/findAllOrder' , params)}